sudo apt install pkg-config zip g++ zlib1g-dev unzip python -y
bazelversion=0.16.0
wget https://github.com/bazelbuild/bazel/releases/download/"$bazelversion"/bazel-"$bazelversion"-installer-linux-x86_64.sh  
chmod +x bazel-"$bazelversion"-installer-linux-x86_64.sh
./bazel-"$bazelversion"-installer-linux-x86_64.sh --user


#gedit ~/.bashrc
#//Add following 2 lines at the end and save
#source ~/.bazel/bin/bazel-complete.bash
#export PATH="$PATH:$HOME/bin"

echo "source ~/.bazel/bin/bazel-complete.bash" >> ~/.bashrc
echo "export PATH=\"$PATH:$HOME/bin\"" >> ~/.bashrc
 
source ~/.bashrc
